package com.huoyun.base.bean;

import java.util.List;

public class Page {

	/**
	 * 总页数
	 */
	public long totalPage = 0;
	
	/**
	 * 当前页码
	 */
	private long pageNo = 1;
	
	/**
	 * 总记录数
	 */
	private long totalRecord = 0;
	
	/**
	 * 每一页的记录数
	 */
	private int pageCount = 10;
	
	/**
	 * 当前需要展示的记录列表
	 */
	private List objectList;

	public long getTotalPage() 
	{
		return totalRecord%pageCount > 0 ? totalRecord/pageCount + 1 : totalRecord/pageCount;
	}

	public long getPageNo() {
		return pageNo;
	}

	public void setPageNo(long pageNo) {
		this.pageNo = pageNo;
	}

	public long getTotalRecord() {
		return totalRecord;
	}

	public void setTotalRecord(long totalRecord) {
		this.totalRecord = totalRecord;
	}

	public int getPageCount() {
		return pageCount;
	}

	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}

	public List getObjectList() {
		return objectList;
	}

	public void setObjectList(List objectList) {
		this.objectList = objectList;
	}
	
	
	
}
